<form method="POST" action="<?=base_url()?>login/loginuser" id="login_form">
    <table align="center" style="margin-top: 90px; border: 1px solid #DEDEDE; padding: 23px 40px;">
        <tr>
            <td> Email:</td>
            <td> <input type="text" name="email" size="15" value="<?php echo set_value('email'); ?>" /> </td>
        </tr>
        <tr>
            <td> Lozinka:</td>
            <td> <input type="password" name="password" size="15" /> </td>
        </tr>
        <tr>
            <td colspan="2" align="right">
                <a href="javascript:" class="btn" style="float: right; margin-top: 7px;" id="submit_form">Prijavi se</a>
            </td>
        </tr>
    </table>
    <table align="center">
        <tr>
            <td colspan="2">
                <a href="<?=base_url();?>login/view_newuserform" style="text-decoration: none; color: #9D9D9D; font-size: 12px;">Kreiraj novog korisnika</a>
            </td>
        </tr>

    </table>
</form>

<div id="actionwrapalign">
    <div id="actionwrap">

        <div id="actioninfowrap">
            <div id="actionclosewrap"><a href="javascript:" id="actionclose" ><img src="<?=base_url();?>assets/img/backgnds/x.png" border="0" width="25" height="29"></a></div>
            <div id="actioninfo">
                <?php echo validation_errors(); ?>
                <?php if(isset($logerror))echo $logerror; ?>
            </div>
        </div>
    </div>
</div>

<script type="text/javascript" 
    src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
    // You may specify partial version numbers, such as "1" or "1.3",
    //  with the same result. Doing so will automatically load the 
    //  latest version matching that partial revision pattern 
    //  (e.g. 1.3 would load 1.3.2 today and 1 would load 1.5.1).
    google.load("jquery", "1.5.1");

    google.setOnLoadCallback(function() {
        // Place init code here instead of $(document).ready()
        $(document).ready(function(){  
            $('#actionclose').live('click',function(){
                $('#actioninfo').html('Clear');
            })
            
            $('#submit_form').live('click',function(){
                $('#login_form').trigger('submit');
            })
            
        });
    });
</script>